#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:lxl

import tkinter as tk  # 使用Tkinter前需要先导入

window = tk.Tk()
window.title("Text")
window.geometry("500x300")

e = tk.Entry(window, show=None)
e.pack()


def insert_point():
    temp = e.get()
    t.insert('insert', temp)

def insert_end():
    temp = e.get()
    t.insert('end', temp)


btn1 = tk.Button(window, text="insert point", command=insert_point)
btn1.pack()

btn2 = tk.Button(window, text="insert end", command=insert_end)
btn2.pack()

var = tk.Variable;
t = tk.Text(window, height=3)
t.pack()

window.mainloop()
